<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Embassy extends CI_Controller {
	
	function __construct(){
		parent::__construct();
		$this->load->helper(array('link'));
		$this->load->model(array('embassy_model'));

	}
	
	
	function index(){
		$data['title']			=	"Vietnamese embassy | Official website Govietnamvisa.com for online application";
		$data['description']	=	"This is the Official Website of Govietnamvisa.com. The site allows you to apply for tourist, business visa on arrival for Vietnam. Quick and Easy to apply online!";
		
		$data['tpl_file']		=	"embassy/index";
		$this->load->view('fulllayout/index', $data);
		
	}
	
	
	function detail($country_name = ""){
		if($_SERVER['REQUEST_METHOD'] == 'POST'){
			
		}
		
		$country_name	=	preg_replace('/([\-])/is', ' ', $country_name);
		$country		=	$this->embassy_model->get_country_detail($country_name);
		$embassy	 	= 	$this->embassy_model->get_embassy_detail($country['id']);
		
		$this->load->view('embassy/detail');
	}
	

}
/* End of file embassy.php */
/* Location: ./application/controllers/embassy.php */